@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/information/information.js"]}){
<style>
.layui-btn-group-yans {
	display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    width: 110px;
    background-color: #fbfbfb;
    color: #01aaed;
    border: 1px solid #01aaed;
}
.layui-btn-group-nans {
	display: inline-block;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    width: 110px;
    background-color: #fbfbfb;
    color: #848383;
    border: 1px solid;
}
.layui-btn-yes-l {
    color: #01aaed;
    border-color: #01aaed;
}
</style>
<div class="layui-body-header">
	<span class="layui-body-header-title">资讯列表</span>
</div>

<div class="layui-fluid">
	<div class="layui-row layui-col-space15">
		<div class="layui-col-lg12">
			<div class="layui-card">
				<div class="layui-card-body">
					<div class="layui-form toolbar">
						<div class="layui-form-item">
							<div class="layui-inline">
								<div class="layui-btn-group">
									<button type="button" lay-filter="btn"  id="btn" name="1" class="layui-btn-group-yans">已发布列表</button>
									<button type="button" lay-filter="btns"  id="btns" name="2" class="layui-btn-group-nans">未发布列表</button>
								</div>
							</div>
							<div id="diva" class="layui-inline">
								<div class="layui-inline">
									<input id="keyword" class="layui-input" type="text"
										placeholder="请输入资讯标题/发布者" />
								</div>
								<div class="layui-inline">
									<input id="timeLimit" class="layui-input" type="text"
										placeholder="发布时间" />
								</div>
							<!-- 	<div class="layui-inline">
									<input id="timeLimits" class="layui-input" type="text"
										placeholder="创建时间" />
								</div> -->
								<div class="layui-inline">
									<button id="btnSearch" class="layui-btn icon-btn">
										<i class="layui-icon">&#xe615;</i>搜索
									</button>
									@if(shiro.hasPermission("/modular/information/add")){
									<button id="btnAdd" class="layui-btn icon-btn">
										<i class="layui-icon"></i>新增
									</button>
									@}
									@if(shiro.hasPermission("/modular/information/export")){
									<button id="btnExp" class="layui-btn icon-btn">
										<i class="layui-icon">&#xe67d;</i>导出
									</button>
									@}
								</div>
							</div>
							<div id="divb" style="display: none;" class="layui-inline">
								<div class="layui-inline">
	                                <select name="status" lay-filter="status" id="status">
	                                    <option value="">全部</option>
	                                    <option value="0">新创</option>
	                                    <option value="2">已下架</option>
	                                </select>
	                            </div>
								<div class="layui-inline">
									<input id="keywords" class="layui-input" type="text"
										placeholder="请请输入资讯标题/发布者" />
								</div>
								<div class="layui-inline">
									<input id="timeLimitss" class="layui-input" type="text"
										placeholder="创建时间" />
								</div>
								<div class="layui-inline">
									<button id="btnSearchs" class="layui-btn icon-btn">
										<i class="layui-icon">&#xe615;</i>搜索
									</button>
									@if(shiro.hasPermission("/modular/information/add")){
									<button id="btnAdds" class="layui-btn icon-btn">
										<i class="layui-icon"></i>新增
									</button>
									@}
									@if(shiro.hasPermission("/modular/information/export")){
									<button id="btnExps" class="layui-btn icon-btn">
										<i class="layui-icon">&#xe67d;</i>导出
									</button>
									@}
								</div>
							</div>
						</div>
					</div>
					<div id="taba">
						<table class="layui-table" id="baseTable" lay-filter="baseTable"></table>
					</div>
					<div  style="display: none;" id="tabb">
						<table class="layui-table" id="baseTables" lay-filter="baseTables"></table>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/html" id="toolBtn">
    @if(shiro.hasPermission("/modular/information/select")){
        <a class="layui-btn layui-btn-primary layui-btn-yes layui-btn-xs" lay-filter="adopts" id="adopts" data-id="{{d.information_id}}">查看</a>
	@}
    @if(shiro.hasPermission("/modular/information/audit")){
		<a class="layui-btn layui-btn-primary layui-btn-no layui-btn-xs" lay-filter="adopt" id="adopt" name="2" data-id="{{d.information_id}}">下架</a>
	@}
</script>
<script type="text/html" id="toolBtns">
    @if(shiro.hasPermission("/modular/information/select")){
        <a class="layui-btn layui-btn-primary layui-btn-yes layui-btn-xs" lay-filter="adopts" id="adopts" data-id="{{d.information_id}}">查看</a>
	@}
    @if(shiro.hasPermission("/modular/information/audit")){
		<a class="layui-btn layui-btn-primary layui-btn-yes-l layui-btn-xs" lay-filter="adopt" id="adopt" name="1" data-id="{{d.information_id}}">发布</a>
	@}
    @if(shiro.hasPermission("/modular/information/delete")){
		<a class="layui-btn layui-btn-primary layui-btn-no layui-btn-xs" lay-filter="delbtn" id="delbtn" name="1" data-id="{{d.information_id}}">删除</a>
	@}
</script>
@}